<?
/* This template lists out your Flickr albums, and forms the gallery navigation */

/* set some variables */
//$highlight = $flickr->getPhotoSizes($album['primary']);
$Slickr_flickr_max_albums = get_option('Slickr_flickr_max_albums');
$totalalbumpages = ceil(count($albums) / $Slickr_flickr_max_albums);
$albumpagenum = 1;

if(count($albums) < $Slickr_flickr_max_albums) {
    $totalalbumpages = 1;
}
if(isset($_GET['page'])) {
    $albumpagenum = $_GET['page'];
}
$albums = array_slice($albums, (($Slickr_flickr_max_albums * $albumpagenum) - $Slickr_flickr_max_albums), $Slickr_flickr_max_albums);          

?>
<div id="slickr">

<div id="slickrajaxmenu">
<?php
include(dirname(__FILE__).'/galleries_menu.html');
?>

</div>

<div id="slickrajaxcontent">
<p class="slickr_heading">Select a Flickr album to view its photos.</p>
</div>

</div>
<div style="clear: both;"></div>